#参数校验
paramss=["","   ","@#$%^&","emo","null","最大值","超出最大值"]
paramss_pass={"@#$%^&","emo","null","最大值"}
paramss_fail={"","   ","超出最大值"}

#登录数据
login_pam=["","   ","@#$%^&","emo","null","166208794391662087943916620879439"]
#login_pam=["16620879437","@#$%^&"]
login_pam_f1={"","   "}
login_pam_f2={"@#$%^&","emo","null","166208794391662087943916620879439",'123456'}
login_pam_p={"16620879431"}
#pytest ./pytest00/tpshop
#allure generate report -o report/html --clean
def resu(count,pss):
    if count in login_pam_f1:
        return "用户名不能为空!"
    elif count in login_pam_f2:
        return "账号格式不匹配!"
    elif count in login_pam_p:
        return "账号不存在!"
    elif pss in login_pam_f1:
        return "密码不能为空!"
    elif pss=='123456'and count=='16620879439':
        return "登录成功!"
    else:
        return "密码错误"